package com.weijian.demo1.entity;

import lombok.Data;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;

@Data
@Schema(description = "团队成员实体")
public class TeamMember {
    @Schema(description = "团队成员ID", example = "1")
    private Long id;
    
    @Schema(description = "团队ID", example = "1")
    private Long teamId;
    
    @Schema(description = "用户ID", example = "2")
    private Long userId;
    
    @Schema(description = "成员角色", example = "MEMBER")
    private String role; // OWNER, MEMBER
    
    @Schema(description = "加入时间")
    private LocalDateTime joinedAt;
}